﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class GetTotalCapacity
    {
        public int Ncapacity;

        public void Gettotalcapacuty(Aircrafts A, Aircrafts B, Aircrafts C, Aircrafts D, Aircrafts F, Aircrafts H)
        {
            Ncapacity = (A.Number*A.Capacity) + (B.Number*B.Capacity) + (C.Number*C.Capacity) + (D.Number*D.Capacity) + (F.Number*F.Capacity) + (H.Number*H.Capacity);
            Console.WriteLine("\nTotalCapacity: = " + Ncapacity);

        }
    }
}
